package com.beans;

public class user {
    private int id;
    private String name;
    private String email;
    private String account;
    private String password;
    private int identity;
    private String nickname;

    // Getter方法，用于获取各个属性的值
    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getEmail() {
        return email;
    }

    public String getAccount() {
        return account;
    }

    public String getPassword() {
        return password;
    }

    public int getIdentity() {
        return identity;
    }

    public String getNickname() {
        return nickname;
    }

    // Setter方法，用于设置各个属性的值
    public void setId(int id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setIdentity(int identity) {
        this.identity = identity;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    // 无参构造函数
    public user() {
    }

    // 全参构造函数，方便在创建对象时直接初始化所有属性
    public user(int id, String name, String email, String account, String password, int identity, String nickname) {
        this.id = id;
        this.name = name;
        this.email = email;
        this.account = account;
        this.password = password;
        this.identity = identity;
        this.nickname = nickname;
    }
}